from conn_mysql import ConnectMysql
import datetime
# notify_code = 366636
# openid = 1123
# with ConnectMysql() as c:

#         sql = "SELECT * FROM phone_notify_code WHERE phone_notify_code=%s and openid=%s"

#         notify_result = c.select_one(sql, (notify_code, openid))

# print(notify_result)

# print(notify_result['regedate'] + datetime.timedelta(hours=8, minutes=5))

with ConnectMysql() as c:

        sql = "UPDATE openid SET company_id=%s WHERE openid=%s"

        c.update_info(sql, (82, 123))